package com.skyline.user.dao;

import java.util.List;

import com.skyline.user.model.EmailToken;
import com.skyline.user.type.EmailTokenType;

public interface EmailTokenDao {
	
	public List<EmailToken> queryTokenByEmailAndTypeAndChecked(String email, EmailTokenType type, boolean checked);

	public List<EmailToken> queryTokenByUserIdAndTypeAndChecked(long userId, EmailTokenType type, boolean checked);
	
	public EmailToken queryToken(String token);

	public void insertToken(EmailToken token);

	public void updateTokenChecked(long id, boolean checked);
}
